<template>
  <div id="no-appointment" :style="{background: bg}"  v-if="store.currentResume.processSort == 33 ||(store.currentResume.lateAgreement&& store.currentResume.processSort == 38)" >
    <span v-if="!store.currentResume.lateAgreement" class="wrap">
      <div class="left">
        <div class="title">应约协议未签署</div>
        <div class="time">
          <span>剩余时间：</span>
          <a-statistic-countdown class="countdown" :value="store.currentResume.agreementLimitTime"
            format="D 天 H 时 m 分 s 秒" />
        </div>
      </div>
      <div class="right">
        <!-- <i class="iconfont icon-shijian"></i> -->
         <img src="@/assets/images/applicationDetail/success-circle.png">
      </div>
    </span>
    <span v-else class="container">
      <div class="container-left">逾期未签署应约协议</div>
      <div class="container-right">
        <!-- <i class="iconfont icon-zhuyi"></i> -->
        <img src="@/assets/images/applicationDetail/warning-circle.png">
      </div>
    </span>
  </div>
</template>

<script setup lang='ts'>
import { computed, ref } from "vue"
import { comStores } from '@/store/common/comStore';

const store = comStores();
const bg =computed(()=>{
  return store.currentResume.lateAgreement?"#FBF5F5":""
})
</script>
<style lang="less" scoped>
#no-appointment {
  height: 90px;
  background: #F5F7FB;
  border-radius: 10px 10px 10px 10px;
  width: 100%;
  padding: 0 30px;
  box-sizing: border-box;
  
  
  .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .left {
    padding-top: 15px;
    box-sizing: border-box;

    .title {
      font-weight: 500;
      font-size: 18px;
      color: #333333;
      line-height: 23px;
    }

    .time {
      font-weight: 400;
      font-size: 14px;
      color: #FF4242;
      line-height: 19px;
      display: flex;
      align-items: center;
      .countdown {
        :deep(.ant-statistic-content-value) {
          margin-bottom: 10px;
          font-size: 16px;
          color: #FF4242;
        }
      }
    }
  }

  .right {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    img {
      width:60px
    }
  }
}

.container{
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  // background: #FFEAEA;
  .container-right {
    width: 46px;
    height: 46px;
    background:#FFEAEA;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    img {
      width:60px
    }
  }
}
</style>